import Mock from 'mockjs';

export default {
    usrgetquanxuan() {
    let menu = Mock.mock({
        "children": [
            {
                "menuId": 1,
                "pid": "0",
                "name": "全部数据",
                "type": 0,
                "permissionValue": null,
                "path": null,
                "component": null,
                "icon": null,
                "status": null,
                "isDeleted": 0,
                "gmtCreate": "2019‐11‐15T09:13:06.000+00:00",
                "gmtModified": "2019‐11‐15T09:13:06.000+00:00",
                "level": 1,
                "children|5": [
                    {
                        "menuId": "1195268474480156673",
                        "pid": "1",
                        "name": "超级管理",
                        "type": 1,
                        "permissionValue": null,
                        "path": "/acl",
                        "component": "Layout",
                        "icon": null,
                        "status": null,
                        "isDeleted": 0,
                        "gmtCreate": "2019‐11‐15T09:13:06.000+00:00",
                        "gmtModified": "2019‐11‐18T05:54:25.000+00:00",
                        "level": 2,
                        "children": [
                            {
                                "menuId": "1195268616021139457",
                                "pid": "1195268474480156673",
                                "name": "用户管理",
                                "type": 1,
                                "permissionValue": null,
                                "path": "user/list",
                                "component": "/acl/user/list",
                                "icon": null,
                                "status": null,
                                "isDeleted": 0,
                                "gmtCreate": "2019‐11‐15T09:13:40.000+00:00",
                                "gmtModified": "2019‐11‐18T05:53:12.000+00:00",
                                "level": 3,
                                "children": [
                                    {
                                        "menuId": "1195269143060602882",
                                        "pid": "1195268616021139457", "name": "查看",
                                        "type": 2,
                                        "permissionValue": "user.list",
                                        "path": "",
                                        "component": "",
                                        "icon": null,
                                        "status": null,
                                        "isDeleted": 0,
                                        "gmtCreate": "2019‐11‐15T09:15:45.000+00:00",
                                        "gmtModified": "2019‐11‐17T13:57:16.000+00:00",
                                        "level": 4,
                                        "children": [],
                                        "select": false
                                    },],
                            },]
                    }]
            },
        ],
    });

        Mock.mock("api/user/menu/list", "get", () => {
            return menu;
        });
    }
}
